
import Layout from '@/layout'
import { roterPre } from '@/settings'
const productRouter =
{
  path: `${roterPre}/product`,
  name: 'product',
  meta: {
    icon: 'dashboard',
    title: '产品管理'
  },
  alwaysShow: true,
  component: Layout,
  children: [
    {
      path: 'classify',
      name: 'ProductClassify',
      meta: {
        title: '产品分类',
        noCache: true
      },
      component: () => import('@/views/product/productClassify')
    },
    {
      path: 'examine',
      name: 'ProductExamine',
      meta: {
        title: '产品管理',
        noCache: true
      },
      component: () => import('@/views/product/productExamine/index.vue')
    },
    {
      path: 'comment',
      name: 'ProductComment',
      meta: {
        title: '评论管理',
        noCache: true,
      },
      component: () => import('@/views/product/productComment/index.vue')
    },
    {
      path: 'label',
      name: 'ProductLabel',
      meta: {
        title: '产品标签',
        noCache: true
      },
      component: () => import('@/views/product/productLabel/index.vue')
    },
    {
      path: 'specs',
      name: 'ProductSpecs',
      meta: {
        title: '平台产品参数',
        noCache: true
      },
      component: () => import('@/views/product/specs/list.vue')
    },
    {
      path: 'merSpecs',
      name: 'MerProductSpecs',
      meta: {
        title: '商户产品参数',
        noCache: true
      },
      component: () => import('@/views/product/specs/merList.vue')
    },
    {
      path: 'specs/create/:id?',
      name: 'ProductSpecsCreate',
      meta: {
        title: '添加参数模板',
        noCache: true,
        activeMenu: `${roterPre}/product/specs`
      },
      component: () => import('@/views/product/specs/create.vue')
    },
    {
      path: 'priceDescription',
      name: 'PriceDescription',
      meta: {
        title: '价格说明',
        noCache: true
      },
      component: () => import('@/views/product/priceDescription/index.vue')
    },
    {
      path: 'band',
      name: 'ProductBand',
      meta: {
        title: '品牌管理',
        noCache: true
      },
      component: () => import('@/views/product/band/index'),
      children: [
        {
          path: 'brandList',
          name: 'BrandList',
          meta: {
            title: '品牌列表',
            noCache: true
          },
          component: () => import('@/views/product/band/bandList')
        },
        {
          path: 'brandClassify',
          name: 'BrandClassify',
          meta: {
            title: '品牌分类',
            noCache: true
          },
          component: () => import('@/views/product/band/bandClassify')
        }

      ]
    },
    {
      path: 'guarantee',
      name: 'ProductGuarantee',
      meta: {
        title: '保障服务',
        noCache: true
      },
      component: () => import('@/views/product/productGuarantee/index.vue')
    },
    {
      path: 'city',
      name: 'ProductCity',
      meta: {
        title: '业务城市',
        noCache: true
      },
      component: () => import('@/views/product/city/index.vue')
    },
    {
      path: 'scenic',
      name: 'ProductScenic',
      meta: {
        title: '景点管理',
        noCache: true
      },
      component: () => import('@/views/product/scenic/index.vue')
    },
    {
      path: 'addScenic/:id?/:edit?',
      component: () => import('@/views/product/scenic/add/index.vue'),
      name: 'addScenic',
      meta: { title: '添加景点', noCache: true },
      hidden: true
    },

    {
      path: 'hotel/index',
      name: 'ProductHotel',
      meta: {
        title: '酒店列表',
        noCache: true
      },
      component: () => import('@/views/product/hotel/index.vue')
    },
    {
      path: 'addHotel/:id?/:edit?',
      component: () => import('@/views/product/hotel/add/index.vue'),
      name: 'addHotel',
      meta: { title: '添加酒店', noCache: true ,activeMenu: `${roterPre}/product/hotel/index`},
      hidden: true
    },
    {
      path: 'hotel/facility',
      name: 'ProductFacility',
      meta: {
        title: '设施分类',
        noCache: true
      },
      component: () => import('@/views/product/hotel/facilityClassify/index.vue')
    },
    
 

     {
      path: 'hotel/roomType',
      name: 'ProductHotelRoomType',
      meta: {
        title: '房型列表',
        noCache: true
      },
      component: () => import('@/views/product/hotel/roomType/index.vue')
    },
    {
      path: 'hotel/addRoomType/:id?/:edit?',
      component: () => import('@/views/product/hotel/roomType/add/index.vue'),
      name: 'addHotelRoomType',
      meta: { title: '添加酒店房型', noCache: true  ,activeMenu: `${roterPre}/product/hotel/roomType`},
      hidden: true
    },
    {
      path: 'hotel/order/list',
      name: 'ProductHotelOrderList',
      meta: {
        title: '订单列表',
        noCache: true
      },
      component: () => import('@/views/product/hotel/order/list/index.vue')
    },
    {
      path: 'hotel/refund/list',
      name: 'ProductHotelOrderRefundList',
      meta: {
        title: '退款单',
        noCache: true
      },
      component: () => import('@/views/product/hotel/order/refund/index.vue')
    },
  ]
}

export default productRouter
